﻿using PrearrangedChaos.AgileZen.Service.Model;
using PrearrangedChaos.AgileZen.Service.Rest;

namespace PrearrangedChaos.AgileZen.Service
{
    internal class ZenPhaseCollection<TCollection> : ZenResourceCollection<TCollection, IPhase>, IZenPhaseEnumerable
        where TCollection : class, IPagingResponse<IPhase>
    {
        public IZenPhaseEnumerable WithStories
        {
            get
            {
                AddEnrichment("stories");
                return this;
            }
        }

        public ZenPhaseCollection(string apiKey, int pageSize, int projectId)
            : base(apiKey, RestArguments.Phase(projectId, pageSize))
        {
        }
    }
}